package org.dong.samples.dao;

import java.util.List;
import org.dong.samples.model.ExamTest;
import org.dong.samples.model.ExamTestType;
import org.dong.samples.model.PagerModel;
import org.dong.samples.model.vo.ExamTestVO;

public interface TestHibernateDAO extends IBaseDAO<ExamTest> {
	
	public List<ExamTest> findAllTest() throws Exception;
	
	public ExamTest getTestById(Integer id) throws Exception;
	
	public void createTest(ExamTest testHiberante) throws Exception;
	
	public void editTest(ExamTest testHiberante) throws Exception;
	
	public void deleteTest(Integer id) throws Exception;
	
	public List<ExamTestType> findExamTestType() throws Exception;
	
	public ExamTestType findByExamTestTypeId(Integer typeId) throws Exception;
	
	public PagerModel<ExamTestVO> pageFindExamTest() throws Exception;

	public List<ExamTest> getTestListBySubAndTestType(Integer subId, Integer typeId);

	public ExamTest findAnwer(Integer testId);

}
